package org.dromara.xxmj.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.List;

/**
 * 课程详情视图对象
 *
 * @author Vincent
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "课程详情视图对象")
public class CourseDetailVo extends CourseVo {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 章节列表
     */
    @Schema(description = "章节列表")
    private List<CourseChapterVo> chapters;

    /**
     * 是否已购买
     */
    @Schema(description = "是否已购买")
    private Boolean purchased;

} 